/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.spring66.tutorial.web.controller;

import com.spring66.tutorial.service.AppUserService;
import java.util.Date;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.AbstractController;

/**
 *
 * @author TwinP
 */
public class UsrListController extends AbstractController {
    private AppUserService appUserService;
    //private ReservationService reservationService;

    /*public void setReservationService(ReservationService reservationService) {
    this.reservationService = reservationService;
    }*/

    @Override
    protected ModelAndView handleRequestInternal(HttpServletRequest arg0, HttpServletResponse arg1) throws Exception {
        return new ModelAndView("usrList", "usrList", appUserService.getUsers(null));
    }

    /**
     * @return the usersService
     */
    public AppUserService getAppUserService() {
        return appUserService;
    }

    /**
     * @param usersService the usersService to set
     */
    public void setAppUserService(AppUserService appUserService) {
        this.appUserService = appUserService;
    }
}
